
import tianditu from './tianditu.js'
import autonavi from './autonavi.js'
import google from './google.js'
import arcgis from './arcgis.js'
import osm from './osm.js'

const providers = [tianditu, autonavi, google, arcgis, osm]

// 图层层级初始化
providers.forEach((item, i) => {
  let z = i * 100
  let layers = Array.isArray(item.layers) ? item.layers : []
  layers.forEach((node, n) => {
    node.zindex = z + (node.zindex || n)
  })
})

export default providers